'use strict';
function compare(arr1,arr2){
    return arr1-arr2;
}
var even_asc_odd_desc = function(collection){
    let collection_a=[];
    let collection_b=[];
    collection_a=collection.filter(function(x){
        return (x%2==0);
    });
    collection_b=collection.filter(function(x){
        return (x%2!=0);
    });
    collection_a.sort(compare);
    (collection_b.sort(compare)).reverse();
    let result=collection_a.concat(collection_b);
    console.log(result);
    return result;

}
module.exports = even_asc_odd_desc;
even_asc_odd_desc([4, 32, 12, 45, 67, 46, 2, 53, 68, 54, 11]);